package tx;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Connection;

import org.junit.Test;

import util.DBPoolUtils;

public class PreparedStatmentTest {
	
	@Test
	public void insert() throws SQLException {
		Connection c = DBPoolUtils.getConnection();
		String sql = "insert into stu values(?,?,?,?)";
		c.prepareStatement(sql);
		
		
		
		// 必须关把连接还给池子
		c.close();
	}
}
